package qpuc.vue;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Menu extends Activity {
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    /**
     * Change le texte de la TextView id (Exemple : setText("Hello", R.id.text);)
     * @param texte
     * @param id
     */
    public void setText(String texte, int id){
    	TextView a = (TextView) findViewById(id);
    	a.setText(texte);
    }
}